// 导入封装好的网络请求类工具
import Network from '../../network'
import request from '../../../utils/request'

//单表1对1
//底层温度压力--修改
export const InsertOrUpdateStratum = (WellStructureId, form) => {
    return request({
        url: `/stratum/insertOrUpdateStratum/${WellStructureId}`,
        method: 'post',
        data: form
    })
}

//底层温度压力--查询
export const FindStratumByCondition = (WellStructureId) => {
    return request({
        url: `/stratum/findStratumByCondition/${WellStructureId}`,
        method: 'get',
    })
}

//钻井液性能--修改
export const InsertOrUpdateMudProperty = (WellStructureId, form) => {
    return request({
        url: `/mudProperty/insertOrUpdateMudProperty/${WellStructureId}`,
        method: 'post',
        data: form
    })
}

//钻井液性能--查询
export const FindMudPropertyByCondition = (WellStructureId) => {
    return request({
        url: `/mudProperty/findMudPropertyByCondition/${WellStructureId}`,
        method: 'get',
    })
}

//电测井径--修改
export const InsertOrUpdateLogHoleDiameter = (WellStructureId, form) => {
    return request({
        url: `/logHoleDiameter/insertOrUpdateLogHoleDiameter/${WellStructureId}`,
        method: 'post',
        data: form
    })
}

//电测井径--查询
export const FindLogHoleDiameterByCondition = (WellStructureId) => {
    return request({
        url: `/logHoleDiameter/findLogHoleDiameterByCondition/${WellStructureId}`,
        method: 'get',
    })
}

//地层承压能力--修改
export const InsertOrUpdateStratumPressureTest = (WellStructureId, form) => {
    return request({
        url: `/stratumPressureTest/insertOrUpdateStratumPressureTest/${WellStructureId}`,
        method: 'post',
        data: form
    })
}

//地层承压能力--查询
export const FindStratumPressureTestByCondition = (WellStructureId) => {
    return request({
        url: `/stratumPressureTest/findStratumPressureTestByCondition/${WellStructureId}`,
        method: 'get',
    })
}

//通井情况--修改
export const InsertOrUpdatePigResult = (WellStructureId, form) => {
    return request({
        url: `/pigResult/insertOrUpdatePigResult/${WellStructureId}`,
        method: 'post',
        data: form
    })
}

//通井情况--查询
export const FindPigResultByCondition = (WellStructureId) => {
    return request({
        url: `/pigResult/findPigResultByCondition/${WellStructureId}`,
        method: 'get',
    })
}